package com.jiangyg.mall.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 类描述：商品会员价格
 *
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 21:33:05
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mc_member_price")
public class MemberPrice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @TableField("id")
    private Long id;

    /**
     * sku_id
     */
    @TableField("sku_id")
    private Long skuId;

    /**
     * 会员等级id
     */
    @TableField("level_id")
    private Long levelId;

    /**
     * 会员等级名
     */
    @TableField("level_name")
    private String levelName;

    /**
     * 会员对应价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 可否叠加其他优惠[0-不可叠加优惠，1-可叠加]
     */
    @TableField("superposable")
    private Integer superposable;

}
